package com.wtwd.campus.h5_manager.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.campus.model.vo.TreeVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @author mjy
 * @date 2022/03/08
 * @description
 */
@ApiModel(value = "授权列表", description = "")
public class H5RolePermissionVo extends TreeVO  implements Serializable {

    private static final long serialVersionUID = 545896877687L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "菜单主键id,唯一")
    private Integer id;


    @ApiModelProperty(value = "父级菜单id")
    private Integer pid;

    /**
     * 名称
     */
    @ApiModelProperty(value = "菜单名称")
    private String name;

    /**
     * 路径
     */
    @ApiModelProperty(value = "菜单路径")
    private String perUrl;


    @ApiModelProperty(value = "菜单类型", notes = "1:一级菜单; 2:子菜单;10:按钮权限")
    private String menuType;

    /**
     * 菜单权限编码
     */
    @ApiModelProperty(value = "菜单权限编码")
    private String perCode;
    /**
     * 是否有权限
     */
    @ApiModelProperty(value = "是否有权限")
    private boolean hasPermission;

    private String checkRole;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerUrl() {
        return perUrl;
    }

    public void setPerUrl(String perUrl) {
        this.perUrl = perUrl;
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType;
    }

    public String getPerCode() {
        return perCode;
    }

    public void setPerCode(String perCode) {
        this.perCode = perCode;
    }

    public boolean isHasPermission() {
        return hasPermission;
    }

    public void setHasPermission(boolean hasPermission) {
        this.hasPermission = hasPermission;
    }

    public String getCheckRole() {
        return checkRole;
    }

    public void setCheckRole(String checkRole) {
        this.checkRole = checkRole;
    }

    @Override
    public String toString() {
        return "H5RolePermissionVo{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", perUrl='" + perUrl + '\'' +
                ", menuType='" + menuType + '\'' +
                ", perCode='" + perCode + '\'' +
                ", hasPermission=" + hasPermission +
                ", checkRole='" + checkRole + '\'' +
                '}';
    }
}
